package com.faith.dynamic.config;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName SwaggerProperties$
 * @Description swagger 配置属性
 * @Author faith$
 * @Date 2019/7/25 16：03
 * @Version 1.0
 **/
@Data
@Component
@NoArgsConstructor
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {
    private String basePackage = "com.faith";


    private Key apiKey = new Key();

    private Info apiInfo = new Info();

    /**
     * 这里假定是头部参数
     */
    @Data
    @NoArgsConstructor
    public static class Key {

        private String name = "Authorization";

        private String keyName = "Authorization";
    }

    @Data
    @NoArgsConstructor
    public static class Info {
        private String title = "API DOCS";

        private String description = "The docs for Faith-Dynamic";

        private String version = "v1.0.0";

        private String termsOfServiceUrl = "123";

        private String developer = "faith";

        private String developerUrl = "https://www.faithstart.cn";

        private String developerEmail = "faithstart@163.com";

        private String license = "Apache 2.0";

        private String licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.html";
    }
}
